<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>静夜思 - 诗境详情 - 古韵新境</title>
    <!-- 引入外部资源 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
    
    <!-- 配置Tailwind -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        ink: '#333333',
                        cinnabar: '#c41e3a',
                        rice: '#f5f2ea',
                        lightink: '#666666',
                        paper: '#f9f6f0',
                    },
                    fontFamily: {
                        song: ['"Noto Serif SC"', 'serif'],
                        kai: ['"Noto Serif SC"', 'serif'],
                        sans: ['"Noto Sans SC"', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    
    <!-- 自定义工具类 -->
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .annotation-hover {
                position: relative;
                cursor: help;
                text-decoration: underline dotted;
            }
            .audio-wave {
                height: 24px;
                display: flex;
                align-items: center;
                gap: 3px;
            }
            .audio-wave span {
                width: 3px;
                background-color: #c41e3a;
                border-radius: 3px;
                animation: wave 1s infinite ease-in-out;
            }
        }
    </style>
    
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;600;700;900&display=swap');
        
        /* 注释弹窗 */
        .annotation-popup {
            visibility: hidden;
            opacity: 0;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: #f5f2ea;
            text-align: center;
            border-radius: 4px;
            padding: 8px 12px;
            width: max-content;
            max-width: 200px;
            z-index: 100;
            transition: opacity 0.3s, visibility 0.3s;
            font-size: 14px;
        }
        
        .annotation-popup::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }
        
        .annotation-hover:hover .annotation-popup {
            visibility: visible;
            opacity: 1;
        }
        
        /* 音频波形动画 */
        @keyframes wave {
            0%, 100% {
                height: 8px;
            }
            50% {
                height: 24px;
            }
        }
        
        .audio-wave span:nth-child(2) { animation-delay: 0.1s; }
        .audio-wave span:nth-child(3) { animation-delay: 0.2s; }
        .audio-wave span:nth-child(4) { animation-delay: 0.3s; }
        .audio-wave span:nth-child(5) { animation-delay: 0.4s; }
        .audio-wave span:nth-child(6) { animation-delay: 0.5s; }
        .audio-wave span:nth-child(7) { animation-delay: 0.4s; }
        .audio-wave span:nth-child(8) { animation-delay: 0.3s; }
        .audio-wave span:nth-child(9) { animation-delay: 0.2s; }
        .audio-wave span:nth-child(10) { animation-delay: 0.1s; }
        
        /* 滚动动画 */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        
        .scroll-reveal.active {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* 标签切换 */
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        .tab-button.active {
            border-color: #c41e3a;
            color: #c41e3a;
            font-weight: 500;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
    </style>
</head>

<body class="bg-rice text-ink font-sans">
    <!-- 导航栏 -->
    <header id="main-nav" class="fixed top-0 left-0 w-full z-50 transition-all duration-500 py-4">
        <div class="container mx-auto px-4 md:px-8 flex justify-between items-center">
            <!-- Logo -->
            <a href="index.html" class="flex items-center space-x-2">
                <div class="w-10 h-10 rounded-full bg-cinnabar flex items-center justify-center">
                    <span class="text-rice font-kai text-xl">古</span>
                </div>
                <span class="text-xl md:text-2xl font-song font-bold">古韵新境</span>
            </a>
            
            <!-- 桌面导航 -->
            <nav class="hidden md:flex items-center space-x-8">
                <a href="index.html" class="font-song hover:text-cinnabar transition-colors duration-300">首页</a>
                <a href="poems.html" class="font-song text-cinnabar border-b-2 border-cinnabar pb-1">诗境</a>
                <a href="classics.html" class="font-song hover:text-cinnabar transition-colors duration-300">典籍</a>
                <a href="interactive.html" class="font-song hover:text-cinnabar transition-colors duration-300">互动</a>
                <a href="about.html" class="font-song hover:text-cinnabar transition-colors duration-300">关于</a>
                <button class="bg-cinnabar text-rice px-5 py-2 rounded-full hover:bg-opacity-90 transition-all duration-300 transform hover:scale-105">
                    登录 / 注册
                </button>
            </nav>
            
            <!-- 移动端菜单按钮 -->
            <button id="menu-toggle" class="md:hidden text-ink text-2xl">
                <i class="fa fa-bars"></i>
            </button>
        </div>
        
        <!-- 移动端导航菜单 -->
        <div id="mobile-menu" class="md:hidden hidden bg-paper absolute top-full left-0 w-full shadow-lg">
            <div class="container mx-auto px-4 py-4 flex flex-col space-y-4">
                <a href="index.html" class="font-song py-2 border-b border-gray-200 hover:text-cinnabar">首页</a>
                <a href="poems.html" class="font-song py-2 border-b border-gray-200 text-cinnabar">诗境</a>
                <a href="classics.html" class="font-song py-2 border-b border-gray-200 hover:text-cinnabar">典籍</a>
                <a href="interactive.html" class="font-song py-2 border-b border-gray-200 hover:text-cinnabar">互动</a>
                <a href="about.html" class="font-song py-2 hover:text-cinnabar">关于</a>
                <button class="bg-cinnabar text-rice px-5 py-3 rounded-full hover:bg-opacity-90 transition-all duration-300">
                    登录 / 注册
                </button>
            </div>
        </div>
    </header>

    <main class="pt-24 pb-16">
        <!-- 路径导航 -->
        <section class="container mx-auto px-4 mb-8 text-sm text-lightink scroll-reveal">
            <a href="index.html" class="hover:text-cinnabar transition-colors">首页</a>
            <span class="mx-2"><i class="fa fa-angle-right"></i></span>
            <a href="poems.html" class="hover:text-cinnabar transition-colors">诗境</a>
            <span class="mx-2"><i class="fa fa-angle-right"></i></span>
            <span>静夜思</span>
        </section>
        
        <!-- 诗词详情 -->
        <section class="container mx-auto px-4">
            <div class="grid grid-cols-1 lg:grid-cols-3 gap-10">
                <!-- 左侧内容区 -->
                <div class="lg:col-span-2">
                    <!-- 诗词标题与作者 -->
                    <div class="mb-10 scroll-reveal">
                        <div class="flex flex-wrap items-center gap-3 mb-4">
                            <span class="bg-cinnabar/10 text-cinnabar text-sm px-3 py-1 rounded-full">唐</span>
                            <span class="bg-ink/10 text-ink text-sm px-3 py-1 rounded-full">五言绝句</span>
                            <span class="bg-ink/10 text-ink text-sm px-3 py-1 rounded-full">思乡</span>
                        </div>
                        <h1 class="text-[clamp(2rem,5vw,3rem)] font-song font-bold mb-4">静夜思</h1>
                        <div class="flex items-center mb-6">
                            <a href="poet-detail.html" class="flex items-center text-lightink hover:text-cinnabar transition-colors">
                                <img src="https://picsum.photos/id/64/100/100" alt="李白头像" class="w-10 h-10 rounded-full object-cover mr-3">
                                <span>李白</span>
                            </a>
                            <span class="mx-3 text-lightink">|</span>
                            <div class="flex items-center text-lightink">
                                <span class="mr-4"><i class="fa fa-eye mr-1"></i> 2.3k</span>
                                <span class="mr-4"><i class="fa fa-heart-o mr-1"></i> 568</span>
                                <span><i class="fa fa-bookmark-o mr-1"></i> 124</span>
                            </div>
                        </div>
                        
                        <!-- 朗诵控制 -->
                        <div class="flex items-center bg-paper p-4 rounded-lg mb-6">
                            <button id="read-poem" class="w-12 h-12 rounded-full bg-cinnabar text-rice flex items-center justify-center mr-4 hover:bg-opacity-90 transition-colors">
                                <i class="fa fa-play"></i>
                            </button>
                            <div>
                                <p class="font-medium mb-1">聆听诗词</p>
                                <div id="wave-container" class="audio-wave hidden">
                                    <span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
                                </div>
                                <div id="read-status" class="text-sm text-lightink">点击播放朗诵音频</div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 诗词原文 -->
                    <div class="mb-12 bg-paper p-8 rounded-xl shadow-sm scroll-reveal">
                        <div class="font-kai text-[clamp(1.5rem,3vw,2rem)] leading-loose text-center">
                            <p class="mb-4">床前明月光，<span class="annotation-hover">疑是<span class="annotation-popup">怀疑是，好像是</span></span>地上霜。</p>
                            <p class="mb-4"><span class="annotation-hover">举头<span class="annotation-popup">抬头</span></span>望明月，<span class="annotation-hover">低头<span class="annotation-popup">低下头</span></span>思故乡。</p>
                        </div>
                    </div>
                    
                    <!-- 解析标签页 -->
                    <div class="scroll-reveal">
                        <!-- 标签切换按钮 -->
                        <div class="flex flex-wrap border-b border-gray-300 mb-6">
                            <button class="tab-button active py-3 px-6 mr-2 border-b-2 border-transparent hover:text-cinnabar transition-colors" data-tab="annotation">注释</button>
                            <button class="tab-button py-3 px-6 mr-2 border-b-2 border-transparent hover:text-cinnabar transition-colors" data-tab="translation">译文</button>
                            <button class="tab-button py-3 px-6 mr-2 border-b-2 border-transparent hover:text-cinnabar transition-colors" data-tab="appreciation">赏析</button>
                            <button class="tab-button py-3 px-6 border-b-2 border-transparent hover:text-cinnabar transition-colors" data-tab="background">创作背景</button>
                        </div>
                        
                        <!-- 标签内容 -->
                        <div class="tab-content active" id="annotation">
                            <div class="bg-paper p-6 rounded-xl">
                                <h3 class="font-song font-bold text-lg mb-4">诗词注释</h3>
                                <ul class="space-y-3 text-ink/80">
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">静夜思：</span>
                                        <span>在安静的夜晚产生的思绪。</span>
                                    </li>
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">床：</span>
                                        <span>此诗中的"床"并非指睡觉的床，而是指"井栏"，即水井周围的栏杆。</span>
                                    </li>
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">明月光：</span>
                                        <span>明亮的月光。</span>
                                    </li>
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">疑是：</span>
                                        <span>怀疑是，好像是。</span>
                                    </li>
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">地上霜：</span>
                                        <span>比喻月光像地上凝结的霜一样洁白。</span>
                                    </li>
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">举头：</span>
                                        <span>抬头。</span>
                                    </li>
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">低头：</span>
                                        <span>低下头，形容沉思的样子。</span>
                                    </li>
                                    <li class="flex">
                                        <span class="font-medium min-w-[80px]">思故乡：</span>
                                        <span>思念家乡。</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        
                        <div class="tab-content" id="translation">
                            <div class="bg-paper p-6 rounded-xl">
                                <h3 class="font-song font-bold text-lg mb-4">现代文译文</h3>
                                <p class="text-ink/80 leading-relaxed mb-4">井栏前洒满了明亮的月光，</p>
                                <p class="text-ink/80 leading-relaxed mb-4">好像是地上铺了一层白霜。</p>
                                <p class="text-ink/80 leading-relaxed mb-4">我抬起头来仰望天上的明月，</p>
                                <p class="text-ink/80 leading-relaxed">低下头便不由得思念起远方的家乡。</p>
                                
                                <div class="mt-6 pt-6 border-t border-gray-200">
                                    <h4 class="font-medium mb-3">英文译文</h4>
                                    <p class="text-ink/80 italic leading-relaxed mb-4">Before my bed there is bright moonlight,</p>
                                    <p class="text-ink/80 italic leading-relaxed mb-4">I think it is frost on the ground.</p>
                                    <p class="text-ink/80 italic leading-relaxed mb-4">I lift my head and look at the bright moon,</p>
                                    <p class="text-ink/80 italic leading-relaxed">I lower my head and think of my hometown.</p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="tab-content" id="appreciation">
                            <div class="bg-paper p-6 rounded-xl">
                                <h3 class="font-song font-bold text-lg mb-4">诗词赏析</h3>
                                <p class="text-ink/80 leading-relaxed mb-4">《静夜思》是唐代诗人李白的代表作之一，这首诗用极其简洁的语言，描绘了一个普遍而深刻的情感——思乡之情。</p>
                                <p class="text-ink/80 leading-relaxed mb-4">诗的前两句"床前明月光，疑是地上霜"，通过比喻手法，将月光比作霜，既写出了月光的皎洁清冷，又暗示了夜晚的寒冷，为下文的思乡之情营造了一种凄凉的氛围。</p>
                                <p class="text-ink/80 leading-relaxed mb-4">后两句"举头望明月，低头思故乡"，以动作细节刻画心理活动，抬头望月是由景生情，低头沉思是触景生情。这两个简单的动作，将诗人的思乡之情表现得淋漓尽致。</p>
                                <p class="text-ink/80 leading-relaxed">整首诗语言朴素自然，却意蕴深远，寥寥二十字，道出了天下游子的共同心声，因此得以千古传诵。</p>
                            </div>
                        </div>
                        
                        <div class="tab-content" id="background">
                            <div class="bg-paper p-6 rounded-xl">
                                <h3 class="font-song font-bold text-lg mb-4">创作背景</h3>
                                <p class="text-ink/80 leading-relaxed mb-4">《静夜思》大约创作于公元726年（唐玄宗开元十四年），当时李白26岁，离开家乡蜀地，漫游至扬州。</p>
                                <p class="text-ink/80 leading-relaxed mb-4">作为一个胸怀大志的年轻人，李白离开家乡寻求发展，然而在外漂泊的生活难免会引发思乡之情。一个安静的夜晚，月色皎洁，诗人辗转难眠，看到窗外的月光，不禁思念起远方的家乡和亲人，于是写下了这首千古名篇。</p>
                                <p class="text-ink/80 leading-relaxed">这首诗虽然简单，却反映了中国古代文人"独在异乡为异客"的普遍情感，成为表达思乡之情的经典之作。</p>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 相关诗词 -->
                    <div class="mt-16 scroll-reveal">
                        <h2 class="text-2xl font-song font-bold mb-6">相关诗词</h2>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <!-- 相关诗词1 -->
                            <a href="poem-detail.html" class="bg-paper p-5 rounded-lg shadow-sm hover:shadow-md transition-shadow">
                                <h3 class="font-song font-bold mb-2">月下独酌四首·其一</h3>
                                <p class="text-lightink text-sm mb-3">李白</p>
                                <p class="font-kai text-ink/80 text-sm">花间一壶酒，独酌无相亲。举杯邀明月，对影成三人。</p>
                            </a>
                            
                            <!-- 相关诗词2 -->
                            <a href="poem-detail.html" class="bg-paper p-5 rounded-lg shadow-sm hover:shadow-md transition-shadow">
                                <h3 class="font-song font-bold mb-2">望月怀远</h3>
                                <p class="text-lightink text-sm mb-3">张九龄</p>
                                <p class="font-kai text-ink/80 text-sm">海上生明月，天涯共此时。情人怨遥夜，竟夕起相思。</p>
                            </a>
                        </div>
                    </div>
                </div>
                
                <!-- 右侧互动区 -->
                <div class="lg:col-span-1">
                    <!-- 声景体验 -->
                    <div class="bg-paper rounded-xl overflow-hidden shadow-sm mb-8 scroll-reveal">
                        <div class="h-48 relative">
                            <img src="https://picsum.photos/id/29/600/400" alt="静夜思声景" class="w-full h-full object-cover">
                            <div class="absolute inset-0 bg-gradient-to-t from-ink/80 to-transparent flex items-end">
                                <h3 class="text-rice font-song font-bold p-6">声景体验</h3>
                            </div>
                        </div>
                        <div class="p-6">
                            <p class="text-ink/80 mb-4">感受诗中的月夜氛围，聆听相关场景音效</p>
                            <button id="soundscape-btn" class="w-full bg-cinnabar text-rice py-3 rounded-lg hover:bg-opacity-90 transition-colors flex items-center justify-center">
                                <i class="fa fa-volume-up mr-2"></i> 体验《静夜思》声景
                            </button>
                            <div id="soundscape-player" class="mt-4 hidden">
                                <div class="audio-wave mb-2">
                                    <span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span>
                                </div>
                                <div class="flex items-center justify-between">
                                    <span class="text-sm text-lightink">00:00</span>
                                    <div class="flex space-x-3">
                                        <button class="text-ink hover:text-cinnabar"><i class="fa fa-step-backward"></i></button>
                                        <button class="text-ink hover:text-cinnabar"><i class="fa fa-pause"></i></button>
                                        <button class="text-ink hover:text-cinnabar"><i class="fa fa-step-forward"></i></button>
                                    </div>
                                    <span class="text-sm text-lightink">01:30</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 创作联动 -->
                    <div class="bg-paper rounded-xl overflow-hidden shadow-sm mb-8 scroll-reveal">
                        <h3 class="font-song font-bold p-6 border-b border-gray-200">创作联动</h3>
                        <div class="p-6">
                            <a href="painting.html" class="block mb-4 p-4 border border-gray-200 rounded-lg hover:border-cinnabar hover:bg-cinnabar/5 transition-colors">
                                <div class="flex items-center">
                                    <div class="w-12 h-12 rounded-full bg-cinnabar/10 flex items-center justify-center mr-4">
                                        <i class="fa fa-paint-brush text-cinnabar"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-medium">生成诗画</h4>
                                        <p class="text-sm text-lightink">为《静夜思》创作一幅画</p>
                                    </div>
                                </div>
                            </a>
                            <a href="interactive.html" class="block p-4 border border-gray-200 rounded-lg hover:border-cinnabar hover:bg-cinnabar/5 transition-colors">
                                <div class="flex items-center">
                                    <div class="w-12 h-12 rounded-full bg-cinnabar/10 flex items-center justify-center mr-4">
                                        <i class="fa fa-pencil text-cinnabar"></i>
                                    </div>
                                    <div>
                                        <h4 class="font-medium">续写诗句</h4>
                                        <p class="text-sm text-lightink">尝试为《静夜思》续写新的诗句</p>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </div>
                    
                    <!-- 用户笔记 -->
                    <div class="bg-paper rounded-xl overflow-hidden shadow-sm mb-8 scroll-reveal">
                        <h3 class="font-song font-bold p-6 border-b border-gray-200">我的笔记</h3>
                        <div class="p-6">
                            <textarea placeholder="写下你对这首诗的理解和感悟..." class="w-full p-4 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-cinnabar focus:border-transparent min-h-[120px] resize-none"></textarea>
                            <div class="mt-4 flex justify-end">
                                <button class="bg-cinnabar text-rice px-4 py-2 rounded-lg hover:bg-opacity-90 transition-colors">
                                    保存笔记
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 分享 -->
                    <div class="bg-paper rounded-xl overflow-hidden shadow-sm scroll-reveal">
                        <h3 class="font-song font-bold p-6 border-b border-gray-200">分享</h3>
                        <div class="p-6">
                            <p class="text-ink/80 mb-4">将这首诗词分享给好友</p>
                            <div class="flex space-x-3">
                                <button class="w-10 h-10 rounded-full bg-[#07C160] text-white flex items-center justify-center hover:bg-opacity-90 transition-colors">
                                    <i class="fa fa-weixin"></i>
                                </button>
                                <button class="w-10 h-10 rounded-full bg-[#E6162D] text-white flex items-center justify-center hover:bg-opacity-90 transition-colors">
                                    <i class="fa fa-weibo"></i>
                                </button>
                                <button class="w-10 h-10 rounded-full bg-[#1296DB] text-white flex items-center justify-center hover:bg-opacity-90 transition-colors">
                                    <i class="fa fa-qq"></i>
                                </button>
                                <button class="w-10 h-10 rounded-full bg-ink text-rice flex items-center justify-center hover:bg-opacity-90 transition-colors">
                                    <i class="fa fa-link"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- 页脚 -->
    <footer class="bg-ink text-rice py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8">
                <div>
                    <div class="flex items-center space-x-2 mb-6">
                        <div class="w-10 h-10 rounded-full bg-cinnabar flex items-center justify-center">
                            <span class="text-rice font-kai text-xl">古</span>
                        </div>
                        <span class="text-xl font-song font-bold">古韵新境</span>
                    </div>
                    <p class="text-rice/70 mb-6">让古典文学活起来，用现代方式感受传统文化魅力</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-rice/70 hover:text-cinnabar transition-colors">
                            <i class="fa fa-weibo text-xl"></i>
                        </a>
                        <a href="#" class="text-rice/70 hover:text-cinnabar transition-colors">
                            <i class="fa fa-wechat text-xl"></i>
                        </a>
                        <a href="#" class="text-rice/70 hover:text-cinnabar transition-colors">
                            <i class="fa fa-instagram text-xl"></i>
                        </a>
                        <a href="#" class="text-rice/70 hover:text-cinnabar transition-colors">
                            <i class="fa fa-twitter text-xl"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h4 class="text-lg font-song font-bold mb-6">快速链接</h4>
                    <ul class="space-y-3">
                        <li><a href="index.html" class="text-rice/70 hover:text-cinnabar transition-colors">首页</a></li>
                        <li><a href="poems.html" class="text-rice/70 hover:text-cinnabar transition-colors">诗境</a></li>
                        <li><a href="classics.html" class="text-rice/70 hover:text-cinnabar transition-colors">典籍</a></li>
                        <li><a href="interactive.html" class="text-rice/70 hover:text-cinnabar transition-colors">互动体验</a></li>
                        <li><a href="about.html" class="text-rice/70 hover:text-cinnabar transition-colors">关于我们</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-song font-bold mb-6">互动功能</h4>
                    <ul class="space-y-3">
                        <li><a href="soundscape.html" class="text-rice/70 hover:text-cinnabar transition-colors">声景体验</a></li>
                        <li><a href="painting.html" class="text-rice/70 hover:text-cinnabar transition-colors">诗画创作</a></li>
                        <li><a href="dialogue.html" class="text-rice/70 hover:text-cinnabar transition-colors">古今对话</a></li>
                        <li><a href="#" class="text-rice/70 hover:text-cinnabar transition-colors">用户作品</a></li>
                        <li><a href="#" class="text-rice/70 hover:text-cinnabar transition-colors">创作活动</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-song font-bold mb-6">联系我们</h4>
                    <ul class="space-y-3">
                        <li class="flex items-start">
                            <i class="fa fa-envelope-o mt-1 mr-3 text-cinnabar"></i>
                            <span class="text-rice/70">contact@guyunxinjing.com</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa fa-phone mt-1 mr-3 text-cinnabar"></i>
                            <span class="text-rice/70">+86 123 4567 8910</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fa fa-map-marker mt-1 mr-3 text-cinnabar"></i>
                            <span class="text-rice/70">北京市海淀区中关村南大街5号</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="border-t border-rice/20 pt-8 text-center text-rice/50 text-sm">
                <p>© 2023 古韵新境 - 古典文学革新平台 版权所有 | 京ICP备12345678号</p>
            </div>
        </div>
    </footer>

    <!-- 回到顶部按钮 -->
    <button id="back-to-top" class="fixed bottom-8 right-8 bg-cinnabar text-rice w-12 h-12 rounded-full flex items-center justify-center shadow-lg opacity-0 invisible transition-all duration-300 z-50">
        <i class="fa fa-arrow-up"></i>
    </button>

    <!-- JavaScript -->
    <script>
        // 导航栏滚动效果
        $(window).scroll(function() {
            const nav = $('#main-nav');
            if ($(window).scrollTop() > 50) {
                nav.addClass('nav-scrolled');
            } else {
                nav.removeClass('nav-scrolled');
            }
            
            // 回到顶部按钮显示/隐藏
            const backToTop = $('#back-to-top');
            if ($(window).scrollTop() > 300) {
                backToTop.removeClass('opacity-0 invisible').addClass('opacity-100 visible');
            } else {
                backToTop.removeClass('opacity-100 visible').addClass('opacity-0 invisible');
            }
            
            // 滚动显示动画
            $('.scroll-reveal').each(function() {
                const revealTop = $(this).offset().top;
                const windowHeight = $(window).height();
                const scrollTop = $(window).scrollTop();
                
                if (revealTop < scrollTop + windowHeight - 100) {
                    $(this).addClass('active');
                }
            });
        });
        
        // 移动端菜单切换
        $('#menu-toggle').click(function() {
            $('#mobile-menu').toggleClass('hidden');
            $(this).find('i').toggleClass('fa-bars fa-times');
        });
        
        // 回到顶部功能
        $('#back-to-top').click(function() {
            $('html, body').animate({ scrollTop: 0 }, 600);
        });
        
        // 标签切换功能
        $('.tab-button').click(function() {
            // 移除所有标签的活跃状态
            $('.tab-button').removeClass('active');
            $('.tab-content').removeClass('active');
            
            // 给当前点击的标签添加活跃状态
            $(this).addClass('active');
            const tabId = $(this).data('tab');
            $('#' + tabId).addClass('active');
        });
        
        // 诗词朗诵功能
        let isPlaying = false;
        $('#read-poem').click(function() {
            const icon = $(this).find('i');
            if (isPlaying) {
                // 暂停播放
                icon.removeClass('fa-pause').addClass('fa-play');
                $('#wave-container').addClass('hidden');
                $('#read-status').text('点击播放朗诵音频');
                isPlaying = false;
            } else {
                // 开始播放
                icon.removeClass('fa-play').addClass('fa-pause');
                $('#wave-container').removeClass('hidden');
                $('#read-status').text('正在播放：李白《静夜思》朗诵');
                isPlaying = true;
            }
        });
        
        // 声景体验功能
        let soundscapePlaying = false;
        $('#soundscape-btn').click(function() {
            if (soundscapePlaying) {
                // 暂停声景
                $('#soundscape-player').addClass('hidden');
                soundscapePlaying = false;
            } else {
                // 播放声景
                $('#soundscape-player').removeClass('hidden');
                soundscapePlaying = true;
            }
        });
        
        // 页面加载完成后初始化
        $(document).ready(function() {
            // 触发一次滚动事件，初始化导航栏状态
            $(window).trigger('scroll');
        });
    </script>
</body>
</html>
